<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="vue-1">
<!--    <button-counter post-title="hello!"></button-counter>-->
    <button-counter post-title="hello!" v-bind:u="u"></button-counter>
<!--    <button-counter></button-counter>-->

</div>


<!--引入vue和axios-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script src="js/vue-1.js"></script>
<script>

</script>
<script>
    let vm = new Vue({
        el:"#vue-1",
        data:{
            u:[]
        },
        created: function () {
            axios.get("/mall/getUser").then(function (response) {
               vm.u = response.data;


            })
    }
    })

</script>
</body>
</html>